class CreateAccounts < ActiveRecord::Migration
  def self.up
    create_table :accounts do |t|
      t.integer :is_removed
      t.integer :is_banned
      t.integer :banned_by
      t.datetime :banned_time
      t.string :account_status
      t.integer :account_type
      t.integer :owner_id
      t.datetime :create_time
      t.decimal :credit_limit
      t.decimal :balance
      t.decimal :credit_summ
      t.decimal :debet_summ
      t.decimal :blocked_summ
      t.integer :last_transaction_id
      t.integer :last_block_id
      t.timestamp :modify_time

      t.timestamps
    end
  end

  def self.down
    drop_table :accounts
  end
end
